import request from "@/utils/request";

// 查询产品出库发货至华为或者华为客户列表
export function listBarcodeShipment(query) {
  return request({
    url: "/ems/barcodeShipment/list",
    method: "get",
    params: query,
  });
}

// 查询产品出库发货至华为或者华为客户详细
export function getBarcodeShipment(emsTransId) {
  return request({
    url: "/ems/barcodeShipment/" + emsTransId,
    method: "get",
  });
}

// 新增产品出库发货至华为或者华为客户
export function addBarcodeShipment(data) {
  return request({
    url: "/ems/barcodeShipment",
    method: "post",
    data: data,
  });
}

// 修改产品出库发货至华为或者华为客户
export function updateBarcodeShipment(data) {
  return request({
    url: "/ems/barcodeShipment",
    method: "put",
    data: data,
  });
}

// 删除产品出库发货至华为或者华为客户
export function delBarcodeShipment(emsTransId) {
  return request({
    url: "/ems/barcodeShipment/" + emsTransId,
    method: "delete",
  });
}

// 导出产品出库发货至华为或者华为客户
export function exportBarcodeShipment(query) {
  return request({
    url: "/ems/barcodeShipment/export",
    method: "get",
    params: query,
  });
}
